package cn.ztuo.bitrade.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;

@Data
@Document(collection = "contract_order_detail")
public class ContractOrderDetail {
    //用户id
    private Long memberId;
    //订单id
    private String orderId;
    //价格
    private BigDecimal price;
    //交易的数量
    private BigDecimal amount;
    //交易额
    private BigDecimal turnover;
    //买卖的方向
    private ContractOrderDirection direction;
    //保证金
    private BigDecimal bond;
    //手续费
    private BigDecimal fee;
    //初始手续费
    private BigDecimal oldFee;
    //成交时间
    private long time;
    // 交易数量
    private BigDecimal tradeNowp;
    //已实现盈亏
    private BigDecimal yingKui;


}
